package com.zhou.windpdfdownload;

import us.codecraft.webmagic.ResultItems;
import us.codecraft.webmagic.Task;
import us.codecraft.webmagic.pipeline.Pipeline;

/**
 * @Author: zhouweixin
 * @Description:
 * @Date: Created in 13:10 2018/10/13
 * @Modified By:
 */
public class WindPipeline implements Pipeline {
    @Override
    public void process(ResultItems resultItems, Task task) {
        String url = (String)resultItems.get("url");
        String title = (String)resultItems.get("title");
        if(url != null && title!=null){
            MyAccessDataBase.addUrl2title(url, title);
        }
    }
}
